
import { defineStore } from 'pinia';

export const useAuthStore = defineStore('auth', {

    state: () => {
        return {
            userInfo: {},
            authCode: [], // 按钮权限
            menuList: [], // 菜单权限
        }
    },

    actions: {
        async setUserInfo(data) {
            this.userInfo = data;
        },

        async setAuthCodeList(data) {
            this.authCode = data;
        },

        async setMenuList(data) {
            this.menuList = data;
        },

    }


})